package com.margo.project.page.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.margo.project.page.service.MargoUserService;

@Controller
@RequestMapping("/page")
public class MargoPageController {
	
	@Autowired
	private MargoUserService margoUserService;
	
	@RequestMapping("/insert")
	@ResponseBody
	public int insert() {
		margoUserService.insert();
//		for(int i=0;i<45;i++) {
//			margoUserService.insert();
//		}
		return 1;
	}
	
	@RequestMapping("/insertuuid")
	@ResponseBody
	public int insertuuid() {
		margoUserService.insertuuid();
//		for(int i=0;i<50;i++) {
//			margoUserService.insertuuid();
//		}
		return 1;
	}
	
	@RequestMapping("/selectList")
	@ResponseBody
	public int selectList() {
		return margoUserService.selectList();
	}
	
	@RequestMapping("/selectPage")
	@ResponseBody
	public int selectPage() {
		return margoUserService.selectPage();
	}
	
	@RequestMapping("/select")
	@ResponseBody
	public int select() {
		return margoUserService.select();
	}
	
	@RequestMapping("/multSelect")
	@ResponseBody
	public int multSelect() {
		margoUserService.multSelect();
		return 1;
	}
}
